e5b6e294ca59b77d142617844ffc4849ee6a9851,portlets/weather-portlet/docroot/WEB-INF/src/com/liferay/weather/util/WeatherWebCacheItem.java,WeatherWebCacheItem,convert,#String#,40
Before Change
try {
String xml = HttpUtil.URLtoString(
"http://www.google.com/ig/api?weather=" +
HttpUtil.encodeURL(_zip));
Document doc = SAXReaderUtil.read(xml);
After Change
Weather weather = null;
try {
StringBundler sb = new StringBundler(5);
sb.append("http://free.worldweatheronline.com/feed/weather.ashx?key=");
sb.append(PortletPropsValues.WORLD_WEATHER_ONLINE_API_KEY);
sb.append("&q=");
sb.append(HttpUtil.encodeURL(_zip));
sb.append("&format=xml");
String xml = HttpUtil.URLtoString(sb.toString());
Document doc = SAXReaderUtil.read(xml);